//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.baidu.trace;

import android.content.Context;
import com.baidu.lbsapi.auth.tracesdk.LBSAuthManager;
import com.baidu.trace.c.e;
import com.baidu.trace.c.f;
import com.baidu.trace.c.g;
import org.json.JSONObject;

public class z implements g {
    protected static String a = "";
    protected static long b = 0L;
    protected static String c = "";
    protected static String d = "";
    protected static String e = "";
    protected static String f = "";
    protected static String g = "";
    protected static String h = "";
    protected static String i = "";
    protected static String j = "";
    protected static String k = "";
    protected static String l = "";
    protected static String m = "";
    protected static byte n;
    protected static byte o;
    protected static byte p = 15;
    protected static byte q = 30;
    protected static byte r;
    protected static byte s = 1;
    protected static byte t;
    protected static byte u;
    protected static byte v;
    protected static byte w = 5;

    public z() {
    }

    protected static void a(Context var0) {
        LBSAuthManager var1;
        k = (var1 = LBSAuthManager.getInstance(var0)).getCUID();
        h = var1.getDeviceID();
        i = var1.getIMEI();
        j = e.b(var0);
        f = f.c;
        g = "3.0.7";
        l = f.a;
        m = f.b;
    }

    public final void a() {
    }

    public final void a(JSONObject var1) {
        az.b = 0;
        com.baidu.trace.a.f var2 = new com.baidu.trace.a.f();

        try {
            var2.a = (byte)var1.getInt("operat_result");
            var2.i = (byte)var1.getInt("is_activated");
            var2.b = (byte)var1.getInt("heartbeat_period");
            var2.c = (byte)var1.getInt("packed_data_transmit_period");
            var2.d = (byte)var1.getInt("packed_data_capacity");
            var2.e = (byte)var1.getInt("packed_data_need_response");
            var2.f = (byte)var1.getInt("module_switch");
            var2.g = (byte)var1.getInt("sensor_wakeup_threshold");
            var2.h = (byte)var1.getInt("volume_size");
            var2.j = (byte)var1.getInt("location_info_sample_period");
            return;
        } catch (Exception var5) {
            var2.a = 0;
            var2.b = 15;
            var2.f = 31;
            var2.d = 96;
            var2.e = 1;
            var2.c = 30;
            var2.j = 5;
            var2.g = 5;
            var2.h = 50;
        } finally {
            bc.a().a(var2);
        }

    }
}
